package amani.wechat.platform.services.model;

import java.math.BigDecimal;

import amani.wechat.platform.webserviceClient.Companyinfo;

public class CompanyInfoEx implements Comparable<CompanyInfoEx> {

	private Companyinfo _companyinfo;

	public CompanyInfoEx(Companyinfo companyinfo) {
		_companyinfo = companyinfo;

	}

	public String getXcoordinate() {
		return _companyinfo.getXcoordinate().getValue();
	}

	public String getYcoordinate() {
		return _companyinfo.getYcoordinate().getValue();
	}

	public Integer getModel() {
		return _companyinfo.getModel().getValue();
	}

	public String getIpadpwd() {
		return _companyinfo.getIpadpwd().getValue();
	}

	public String getMangerPassword() {
		return _companyinfo.getMangerPassword().getValue();
	}

	public String getCreatedate() {
		return _companyinfo.getCreatedate().getValue();
	}

	public String getCompno() {
		return _companyinfo.getCompno().getValue();
	}

	public String getCompname() {
		return _companyinfo.getCompname().getValue();
	}

	public String getCompstate() {
		return _companyinfo.getCompstate().getValue();
	}

	public String getCompphone() {
		return _companyinfo.getCompphone().getValue();
	}

	public String getCompaddress() {
		return _companyinfo.getCompaddress().getValue();
	}

	public String getComptradelicense() {
		return _companyinfo.getComptradelicense().getValue();
	}

	public String getCompfex() {
		return _companyinfo.getCompfex().getValue();
	}

	public String getCompzipcode() {
		return _companyinfo.getCompzipcode().getValue();
	}

	public String getCompadslno() {
		return _companyinfo.getCompadslno().getValue();
	}

	public String getCompadslpassword() {
		return _companyinfo.getCompadslpassword().getValue();
	}

	public BigDecimal getComparea() {
		return _companyinfo.getComparea().getValue();
	}

	public BigDecimal getComprent() {
		return _companyinfo.getComprent().getValue();
	}

	public String getCompstateText() {
		return _companyinfo.getCompstateText().getValue();
	}

	public String getCompresponsible() {
		return _companyinfo.getCompresponsible().getValue();
	}

	public String getCompmode() {
		return _companyinfo.getCompmode().getValue();
	}

	public String getRegion() {
		return _companyinfo.getRegion().getValue();
	}

	public String getCompipaddress() {
		return _companyinfo.getCompipaddress().getValue();
	}

	public String getCompipaddressex() {
		return _companyinfo.getCompipaddressex().getValue();
	}

	public BigDecimal getMirrornumber() {
		return _companyinfo.getMirrornumber().getValue();
	}

	public String getShopwf1() {
		return _companyinfo.getShopwf1().getValue();
	}

	public String getShopwf2() {
		return _companyinfo.getShopwf2().getValue();
	}

	public String getShopwf3() {
		return _companyinfo.getShopwf3().getValue();
	}

	public String getShopwf4() {
		return _companyinfo.getShopwf4().getValue();
	}

	public String getShopwf5() {
		return _companyinfo.getShopwf5().getValue();
	}

	public String getShopwf6() {
		return _companyinfo.getShopwf6().getValue();
	}

	public String getShopwf7() {
		return _companyinfo.getShopwf7().getValue();
	}

	public String getShopwf8() {
		return _companyinfo.getShopwf8().getValue();
	}

	public String getShopwf9() {
		return _companyinfo.getShopwf9().getValue();
	}

	public String getShopwf10() {
		return _companyinfo.getShopwf10().getValue();
	}

	/**
	 * 当前位置距离
	 */
	private double meters;

	/**
	 * 获取当前位置距离
	 * 
	 * @return
	 */
	public double getMeters() {
		return meters;
	}

	/**
	 * 设定当前位置距离
	 */
	public void setMeters(double value) {
		meters = value;
	}

	@Override
	public int compareTo(CompanyInfoEx o) { 
		int res = 0;
		if(this.getMeters()>o.getMeters()){
			res =  1;
		}else if(this.getMeters()<o.getMeters()){
			res =  -1;
		}else{
			res = 0;
		}
		return res;
	}
}
